package de.dhbw.ka.tit09.picsim.model.converter;

import org.eclipse.core.databinding.conversion.Converter;

/**
 * Integer to hex string converter class. Converts model values to GUI
 * representation.
 * 
 * @author Andreas Bender
 * 
 */
public class IntToHexStringConverter extends Converter {

	/**
	 * Constructor.
	 */
	public IntToHexStringConverter() {
		super(new Integer(0), new String());
	}

	public Object convert(Object fromObject) {
		return Integer.toHexString((Integer) fromObject);
	}

}
